Optimal. Leaf size=102 \[ -\frac {2}{27 x^3}-\frac {4 a^2}{9 x}+\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x^3}+\frac {4 a^2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x}-\frac {\text {sech}^{-1}(a x)^2}{3 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6420, 5481,
3391, 3377, 2718} \begin {gather*} -\frac {4 a^2}{9 x}+\frac {4 a^2 \sqrt {\frac {1-a x}{a x+1}} (a x+1) \text {sech}^{-1}(a x)}{9 x}-\frac {\text {sech}^{-1}(a x)^2}{3 x^3}+\frac {2 \sqrt {\frac {1-a x}{a x+1}} (a x+1) \text {sech}^{-1}(a x)}{9 x^3}-\frac {2}{27 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rule 3391
Rule 5481
Rule 6420
Rubi steps
\begin {align*} \int \frac {\text {sech}^{-1}(a x)^2}{x^4} \, dx &=-\left (a^3 \text {Subst}\left (\int x^2 \cosh ^2(x) \sinh (x) \, dx,x,\text {sech}^{-1}(a x)\right )\right )\\ &=-\frac {\text {sech}^{-1}(a x)^2}{3 x^3}+\frac {1}{3} \left (2 a^3\right ) \text {Subst}\left (\int x \cosh ^3(x) \, dx,x,\text {sech}^{-1}(a x)\right )\\ &=-\frac {2}{27 x^3}+\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x^3}-\frac {\text {sech}^{-1}(a x)^2}{3 x^3}+\frac {1}{9} \left (4 a^3\right ) \text {Subst}\left (\int x \cosh (x) \, dx,x,\text {sech}^{-1}(a x)\right )\\ &=-\frac {2}{27 x^3}+\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x^3}+\frac {4 a^2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x}-\frac {\text {sech}^{-1}(a x)^2}{3 x^3}-\frac {1}{9} \left (4 a^3\right ) \text {Subst}\left (\int \sinh (x) \, dx,x,\text {sech}^{-1}(a x)\right )\\ &=-\frac {2}{27 x^3}-\frac {4 a^2}{9 x}+\frac {2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x^3}+\frac {4 a^2 \sqrt {\frac {1-a x}{1+a x}} (1+a x) \text {sech}^{-1}(a x)}{9 x}-\frac {\text {sech}^{-1}(a x)^2}{3 x^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 73, normalized size = 0.72 \begin {gather*} \frac {-2 \left (1+6 a^2 x^2\right )+6 \sqrt {\frac {1-a x}{1+a x}} \left (1+a x+2 a^2 x^2+2 a^3 x^3\right ) \text {sech}^{-1}(a x)-9 \text {sech}^{-1}(a x)^2}{27 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.23, size = 112, normalized size = 1.10
method | result | size |
derivativedivides | \(a^{3} \left (-\frac {\mathrm {arcsech}\left (a x \right )^{2}}{3 a^{3} x^{3}}+\frac {4 \,\mathrm {arcsech}\left (a x \right ) \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{9}+\frac {2 \,\mathrm {arcsech}\left (a x \right ) \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{9 a^{2} x^{2}}-\frac {4}{9 a x}-\frac {2}{27 a^{3} x^{3}}\right )\) | \(112\) |
default | \(a^{3} \left (-\frac {\mathrm {arcsech}\left (a x \right )^{2}}{3 a^{3} x^{3}}+\frac {4 \,\mathrm {arcsech}\left (a x \right ) \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{9}+\frac {2 \,\mathrm {arcsech}\left (a x \right ) \sqrt {-\frac {a x -1}{a x}}\, \sqrt {\frac {a x +1}{a x}}}{9 a^{2} x^{2}}-\frac {4}{9 a x}-\frac {2}{27 a^{3} x^{3}}\right )\) | \(112\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 116, normalized size = 1.14 \begin {gather*} -\frac {12 \, a^{2} x^{2} - 6 \, {\left (2 \, a^{3} x^{3} + a x\right )} \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} \log \left (\frac {a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} + 1}{a x}\right ) + 9 \, \log \left (\frac {a x \sqrt {-\frac {a^{2} x^{2} - 1}{a^{2} x^{2}}} + 1}{a x}\right )^{2} + 2}{27 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {asech}^{2}{\left (a x \right )}}{x^{4}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\mathrm {acosh}\left (\frac {1}{a\,x}\right )}^2}{x^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________